package org.cnbi.entity;

import java.util.List;

import org.cnbi.entity.base.Dim;
import org.codehaus.jackson.map.annotate.JsonSerialize;

/**
 * Copyright © 2014中国经邦. All rights reserved.
 * @Author 龚佳新
 * @Time 2014年3月11日下午2:15:38
 */
public class Menu extends Dim {
	
	//需要扩展的属性
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	public String property1;
	
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	public String property2;
	
	

	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	public String favicon = "favicon";
	
	public int level ;
	
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	public List<Menu> children;
	
	/**
	 * @return the children
	 */
	public List<Menu> getChildren() {
		return children;
	}

	/**
	 * @param children the children to set
	 */
	public void setChildren(List<Menu> children) {
		this.children = children;
	}
	public Menu(String scode) {
		this.scode = scode;
	}
	public Menu(String scode, String sname) {
		super();
		this.scode = scode;
		this.sname = sname;
	}
	
	public Menu(String scode, String sname,String spcode) {
		super();
		this.scode = scode;
		this.spcode = spcode;
		this.sname = sname;
	}
	public Menu(String scode, String sname,String spcode,String note) {
		super();
		this.scode = scode;
		this.spcode = spcode;
		this.sname = sname;
		this.note = note;
	}
	public Menu(String scode, String sname,String spcode,String note,int level) {
		super();
		this.scode = scode;
		this.spcode = spcode;
		this.sname = sname;
		this.note = note;
		this.level = level;
	}
	public Menu(String scode, String sname,String spcode,String note,int level,String state) {
		super();
		this.scode = scode;
		this.spcode = spcode;
		this.sname = sname;
		this.note = note;
		this.level = level;
		this.state = state;
	}
	public Menu(){}

	public String getFavicon() {
		return favicon;
	}

	public void setFavicon(String favicon) {
		this.favicon = favicon;
	}

	/**
	 * @return the level
	 */
	public int getLevel() {
		return level;
	}

	/**
	 * @param level the level to set
	 */
	public void setLevel(int level) {
		this.level = level;
	}
	/**
	 * @return the property1
	 */
	public String getProperty1() {
		return property1;
	}

	/**
	 * @param property1 the property1 to set
	 */
	public void setProperty1(String property1) {
		this.property1 = property1;
	}

	/**
	 * @return the property2
	 */
	public String getProperty2() {
		return property2;
	}

	/**
	 * @param property2 the property2 to set
	 */
	public void setProperty2(String property2) {
		this.property2 = property2;
	}
	

}
